<template>
	<view>
		<view class="box">
			<view class="item">
				<view class="title">
					{{name}}
				</view>
				<view class="mum">
					￥{{money1}}
				</view>
			</view>
			<image src="/static/ico-25.png" mode=""></image>
			<view class="item">
				<view class="title">
					{{name1}}
				</view>
				<view class="mum">
					<!-- ￥0.00 -->
				</view>
			</view>
		</view>
		<view class="item_nav">
			<view class="name">
				金额
			</view>
			<input type="text" v-model="money" placeholder="请输入将要转换的金额" />
		</view>
		<view class="item_nav">
			<view class="name">
				手续费
			</view>
			<view class="name">
				0.00
			</view>
		</view>
		<button class="add-btn" @click="fatherMethod('add')">提交</button>
		<!-- <CButton :bg="'rgba(246, 246, 246, 1)'" :fatherMethod="fatherMethod" :text="'确认转换'"></CButton> -->
		<!-- <ourLoading isFullScreen :active="isShow" text="loading..." /> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name:'',
				name1:'',
				money1:'',
				money:'',
				bname:'',
				bname1:'',
				id:''
			}
		},
		onLoad(option) {
			this.name= option.name
			this.name1= option.name1
			this.bname= option.bname
			this.bname1= option.bname1
			this.id= option.id
			this.money1= option.money
		},
		methods: {
			fatherMethod() {
				// console.log(11111)
				let prams = {
					money:this.money,
					bname:this.bname1,
					name:this.bname,
				}
				this.$api.user_Hbmoney(prams).then(res=>{
					if(res.code==1){
						uni.navigateBack({
							
						})
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.box {
		width: 690rpx;
		height: 160rpx;
		background: #FFFFFF;
		border-radius: 10px;
		margin: 27rpx auto;
		display: flex;
		align-items: center;

		.item {
			margin: 46rpx 80rpx;
			text-align: center;
			display: flex;
			justify-content: space-between;
			flex-direction: column;

			.title {
				color: #52528C;
				font-size: 26rpx;
			}

			.num {
				color: #121212;
				font-size: 36rpx;
				font-weight: bold;
			}
		}

		image {
			width: 128rpx;
			height: 27rpx;
		}
	}

	.item_nav {
		width: 690rpx;
		height: 100rpx;
		margin: 0 auto;
		margin-top: 24rpx;
		background: #FFFFFF;
		align-items: center;
		padding: 35rpx;
		box-sizing: border-box;
		font-size: 28rpx;
		color: #333333;
		display: flex;
		justify-content: space-between;
		margin-bottom: 2rpx;
		font-weight: bold;

		input {
			text-align: end;
		}

		input::-webkit-input-placeholder {
			color: #CCCCCC;
			font-size: 28rpx;
		}
	}
</style>
